package com.stx.day0918;

/**
 * packageName com.stx.day0918
 *
 * @author YangYi
 * @className MyClass
 * @date 2025/9/18
 * @description TODO
 */
public class MyClass  implements Cloneable{
    private int num;

    public MyClass(int num) {
        this.num = num;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    @Override
    public String toString() {
        return "MyClass{" +
                "num=" + num +
                '}';
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }
}
